package file;

import java.io.File;

public class MkdirDemo {
    public static void main(String[] args) {
        File dir = new File("./a");
        if(dir.exists())
        {
            System.out.println("目录已经存在");
        }
        else
        {
            dir.mkdirs();
            System.out.println("创建成功！");
        }
        dir.delete();
    }
}
